﻿using System;
using System.Linq;

namespace Se.Framework.Web.Mvc.Filters
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
    public sealed class UnitOfWorkPropertiesAttribute : Attribute
    {
        public UnitOfWorkPropertiesAttribute()
        {
            AutoCommitEnable = true;
        }

        public bool AutoCommitEnable { get; set; }
    }
}
